<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>定制航班</title>
        <script type="text/javascript" src="<%=basePath%>js/jquery-1.3.1.js"></script>
		<script type="text/javascript" src="<%=basePath%>js/citypicker.js"></script>
		<script type="text/javascript" src="<%=basePath%>js/jquery.validate.js"></script>
		<script type="text/javascript" charset="UTF-8" src="<%=basePath%>js/messages_cn.js"></script>
		<link rel="stylesheet" type="text/css" href="<%=basePath%>css/citypicker.css">
		<script type="text/javascript">
		$(function() {
				$("#insertFlightForm").validate({
					rules:{
						"flight.flight_name":{
							required:true
						},
						"flight.flight_type":{
							required:true
						},
						"flight.start_flight":{
							required:true
						},
						"flight.end_flight":{
							required:true
						},
						"flight.times":{
							required:true
						},
						"flight.capacity":{
							required:true
						},
						"flight.price":{
							required:true
						}
					}
				});
	  		}) ;
		</script>

  </head>
  
  <body bgcolor="#D6DFF7">
    <table width="100%" border="0" align="center" cellpadding="1" cellspacing="0" class="TABLELIST">
			<tr bgcolor="#DEE5FA">
				<td align="center">
				  	<form action="FlightInfo!inserFlight" method="post" id="insertFlightForm">
				  			<table width="100%" border="0" cellpadding="1" cellspacing="0"
							class="TABLELIST" bordercolor="#799AE1">
							<tr bgcolor="#799AE1">
								<td colspan="2" align="center" style="font-size: 16px" height="50">
									<font color="#874B46" size="4pt">定制航票</font>
								</td>
							<tr>
								<td height="50"  width="42%" align="right">
									航班名称：&nbsp;&nbsp;&nbsp;
								</td>
								<td width="58%" align="left">
									<input name="flight.flight_name" id="flight_name" type="text"
										size="20" style="width:200px; height:26px;" />
								</td>
							</tr>
							<tr>
								<td height="50"  width="42%" align="right">
									机&nbsp;&nbsp;&nbsp;&nbsp;型：&nbsp;&nbsp;&nbsp;
								</td>
								<td width="58%" align="left">
									<input name="flight.flight_type" id="flight_type" type="text"
										size="20" style="width:200px; height:26px;" />
								</td>
							</tr>
							<tr>
								<td height="50"  width="42%" align="right">
									起飞地点：&nbsp;&nbsp;&nbsp;
								</td>
								<td width="58%" align="left">
									<input name="flight.start_flight" id="start_flight" type="text"
										size="20" style="width:200px; height:26px;" />
								</td>
							</tr>
							<tr>
								<td height="50"  width="42%" align="right">
									到达地点：&nbsp;&nbsp;&nbsp;
								</td>
								<td align="left">
									<input name="flight.end_flight" id="end_flight" type="text"
										size="20" style="width:200px; height:26px;" />
								</td>
							</tr>
							<tr>
								<td height="50"  width="42%" align="right">
									航班旅程：&nbsp;&nbsp;&nbsp;
								</td>
								<td align="left">
									<input name="flight.times" id="times" type="text"
										size="20" style="width:200px; height:26px;" />
								</td>
							</tr>
							<tr>
								<td height="50"  width="42%" align="right">
									容纳人数：&nbsp;&nbsp;&nbsp;
								</td>
								<td align="left">
									<input name="flight.capacity" id="capacity" type="text"
										size="20" style="width:200px; height:26px;" />
								</td>
							</tr>
							<tr>
								<td height="50"  width="42%" align="right">
									票&nbsp;&nbsp;&nbsp;&nbsp;价：&nbsp;&nbsp;&nbsp;
								</td>
								<td align="left">
									<input name="flight.price" id="price" type="text"
										size="20" style="width:200px; height:26px;" />
								</td>
							</tr>
							
							<tr>
								<td width="42%" align="left">
									
								</td>
								<td align="left">
								    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input style="width: 60" type="submit" name="post" value="提交" />
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input style="width: 60" type="reset" name="reset" value="重置" />
								</td>
							</tr>
					
							
							</table>
				  	</form>
				  </td>
				</tr>
				
			
	</table>
	<script>
           $(function(){
               $("#start_flight").citypicker();
               $("#end_flight").citypicker();
           })
    </script>
	
  </body>
</html>
